package k8.buffer.var;

import k8.buffer.IndicesBuffer;

import org.lwjgl.opengl.GL11;


public final class VARIndicesBuffer extends IndicesBuffer {
    
    /**
     * Creates an instance of VARIndicesBuffer.
     * 
     * @param initialcapacity
     *          Initial capacity (number of vertices)
     */
    public VARIndicesBuffer(int initialcapacity) {
        super(initialcapacity);
    }

    @Override
    public void destroy() {
    }
    
    /** Tells OpenGL to render, using this buffer as the indices */
    public void glDrawElements() {
        buffer.rewind();
        GL11.glDrawElements(GL11.GL_TRIANGLES, buffer.asIntBuffer());
    }
    
}
